var main = require("./views/main.vue");
var login = require("./views/login.vue");
var register = require("./views/register.vue");

var bank_query = require("./views/bank_query.vue");
var fund_query = require("./views/fund_query.vue");
var sys_check = require("./views/sys_check.vue");
var person_check = require("./views/person_check.vue");
var pass_query = require("./views/pass_query.vue");
var nopass_query = require("./views/nopass_query.vue");
var deposit_analysis = require("./views/deposit_analysis.vue");

module.exports = function(router){
    router.map({
        "/": {
            name: 'login', //首页
            component:  login
        },
        "/main": {
            name: 'main', //首页
            component: main,
            subRoutes: {
                // 当路径是 /main/fund_query 时进行渲染
                // 充值查询
                '/fund_query': {
                    name: "fund_query",
                    component: fund_query
                },
                // 银行资金
                '/bank_query': {
                    name: "bank_query",
                    component: bank_query
                },
                // 系统核对
                '/sys_check': {
                    name: "sys_check",
                    component: sys_check
                },
                // 人工核对
                '/person_check': {
                    name: "person_check",
                    component: person_check
                },
                // 核销查询
                '/pass_query': {
                    name: "pass_query",
                    component: pass_query
                },
                // 差额查询
                '/nopass_query': {
                    name: "nopass_query",
                    component: nopass_query
                },
                // 沉淀分析
                '/deposit_analysis': {
                    name: "deposit_analysis",
                    component: deposit_analysis
                }
            }
        },
        "/login": {
            name: "login", //登录
            component: login
        },
        "/register": {
            name: "register", //注册
            component: register
        }
    });
};


